package com.bing.habit.service;

import com.bing.habit.entity.ClockinLog;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface ClockInLogService {
    void addOrUpdate(ClockinLog clockinLog);
    void delete(int id);
    ClockinLog get(int id);
    List<ClockinLog> listByHabit(int hid);
    boolean listByToday(int hid);
    void deleteByHidAndToday(int hid);
    //上传图片
    String uploadFile(MultipartFile file) throws IOException;
    void deleteBatchIds(List<Integer> ids);

    void delUploadFile(String fileName);
}
